import { QUESTION_TYPE } from "../config";

export const questionTypeFilter = str => {
  if (!str) return "";
  const type = QUESTION_TYPE.find(r => r.id === str);
  return (type && type.label) || "";
};
